<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/include.jsp"%>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.0
Version: 3.5
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Follow: www.twitter.com/keenthemes
Like: www.facebook.com/keenthemes
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title><sitemesh:write property='title' /></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta content="" name="description" />
<meta content="" name="author" />
<script src="static/assets/global/plugins/jquery.min.js"
	type="text/javascript"></script>
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>static/plugs/fontIconPicker/icomoon/style.css" /> 

 <link
	href="static/assets/global/plugins/font-awesome/css/font-awesome.min.css"
	rel="stylesheet" type="text/css" />
<!--<link
	href="static/assets/global/plugins/simple-line-icons/simple-line-icons.min.css"
	rel="stylesheet" type="text/css" /> -->
	<link rel="stylesheet" type="text/css" href="<%=basePath%>static/plugs/fontIconPicker/fontello-7275ca86/css/fontello.css" />
<link
	href="static/assets/global/plugins/bootstrap/css/bootstrap.min.css"
	rel="stylesheet" type="text/css" />
<!-- <link
	href="static/assets/global/plugins/uniform/css/uniform.default.css"
	rel="stylesheet" type="text/css" /> -->
<link
	href="static/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css"
	rel="stylesheet" type="text/css" />
<!-- END GLOBAL MANDATORY STYLES -->
<sitemesh:write property="head" />
<!-- BEGIN THEME STYLES -->
<link href="static/assets/global/css/components.css"
	id="style_components" rel="stylesheet" type="text/css" />
<link href="static/assets/global/css/plugins.css" rel="stylesheet"
	type="text/css" />
<link href="static/assets/admin/layout/css/layout.css" rel="stylesheet"
	type="text/css" />
<link id="style_color"
	href="static/assets/admin/layout/css/themes/default.css"
	rel="stylesheet" type="text/css" />
<link href="static/assets/admin/layout/css/custom.css" rel="stylesheet"
	type="text/css" />
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico" />
 
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<!-- DOC: Apply "page-header-fixed-mobile" and "page-footer-fixed-mobile" class to body element to force fixed header or footer in mobile devices -->
<!-- DOC: Apply "page-sidebar-closed" class to the body and "page-sidebar-menu-closed" class to the sidebar menu element to hide the sidebar by default -->
<!-- DOC: Apply "page-sidebar-hide" class to the body to make the sidebar completely hidden on toggle -->
<!-- DOC: Apply "page-sidebar-closed-hide-logo" class to the body element to make the logo hidden on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-hide" class to body element to completely hide the sidebar on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-fixed" class to have fixed sidebar -->
<!-- DOC: Apply "page-footer-fixed" class to the body element to have fixed footer -->
<!-- DOC: Apply "page-sidebar-reversed" class to put the sidebar on the right side -->
<!-- DOC: Apply "page-full-width" class to the body element to have full width page without the sidebar menu -->
<body class="page-header-fixed page-quick-sidebar-over-content">
	<!-- BEGIN HEADER -->
	<div class="page-header navbar navbar-fixed-top">
		<!-- BEGIN HEADER INNER -->
		<div class="page-header-inner">
			<!-- BEGIN LOGO -->
			<div class="page-logo">
				<a href="index.html"> <img
					src="static/assets/admin/layout/img/logo.png" alt="logo"
					class="logo-default" />
				</a>
				<div class="menu-toggler sidebar-toggler hide">
					<!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->
				</div>
			</div>
			<!-- END LOGO -->
			<!-- BEGIN RESPONSIVE MENU TOGGLER -->
			<a href="javascript:;" class="menu-toggler responsive-toggler"
				data-toggle="collapse" data-target=".navbar-collapse"> </a>
			<!-- END RESPONSIVE MENU TOGGLER -->
			<!-- BEGIN TOP NAVIGATION MENU -->
			<div class="top-menu">
				<ul class="nav navbar-nav pull-right">
					<!-- BEGIN NOTIFICATION DROPDOWN -->
					<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
					<li class="dropdown dropdown-extended dropdown-notification"
						id="header_notification_bar"><a href="#"
						class="dropdown-toggle" data-toggle="dropdown"
						data-hover="dropdown" data-close-others="true"> <i
							class="icon-bell"></i> <span class="badge badge-default">
								7 </span>
					</a>
						<ul class="dropdown-menu">
							<li class="external">
								<h3>
									<span class="bold">12 pending</span> notifications
								</h3> <a href="extra_profile.html">view all</a>
							</li>
							<li>
								<ul class="dropdown-menu-list scroller" style="height: 250px;"
									data-handle-color="#637283">
									<li><a href="javascript:;"> <span class="time">just
												now</span> <span class="details"> <span
												class="label label-sm label-icon label-success"> <i
													class="fa fa-plus"></i>
											</span> New user registered.
										</span>
									</a></li>
								</ul>
							</li>
						</ul></li>
					<!-- END NOTIFICATION DROPDOWN -->
					<!-- BEGIN INBOX DROPDOWN -->
					<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
					<li class="dropdown dropdown-extended dropdown-inbox"
						id="header_inbox_bar"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown" data-hover="dropdown"
						data-close-others="true"> <i class="icon-envelope-open"></i> <span
							class="badge badge-default"> 4 </span>
					</a>
						<ul class="dropdown-menu">
							<li class="external">
								<h3>
									You have <span class="bold">7 New</span> Messages
								</h3> <a href="page_inbox.html">view all</a>
							</li>
							<li>
								<ul class="dropdown-menu-list scroller" style="height: 275px;"
									data-handle-color="#637283">
									<li><a href="inbox.html?a=view"> <span class="photo">
												<img src="static/assets/admin/layout3/img/avatar2.jpg"
												class="img-circle" alt="">
										</span> <span class="subject"> <span class="from"> Lisa
													Wong </span> <span class="time">Just Now </span>
										</span> <span class="message"> Vivamus sed auctor nibh congue
												nibh. auctor nibh auctor nibh... </span>
									</a></li>
								</ul>
							</li>
						</ul></li>
					<!-- END INBOX DROPDOWN -->
					<!-- BEGIN TODO DROPDOWN -->
					<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
					<li class="dropdown dropdown-extended dropdown-tasks"
						id="header_task_bar"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown" data-hover="dropdown"
						data-close-others="true"> <i class="icon-calendar"></i> <span
							class="badge badge-default"> 3 </span>
					</a>
						<ul class="dropdown-menu extended tasks">
							<li class="external">
								<h3>
									You have <span class="bold">12 pending</span> tasks
								</h3> <a href="page_todo.html">view all</a>
							</li>
							<li>
								<ul class="dropdown-menu-list scroller" style="height: 275px;"
									data-handle-color="#637283">
									<li><a href="javascript:;"> <span class="task">
												<span class="desc">New release v1.2 </span> <span
												class="percent">30%</span>
										</span> <span class="progress"> <span style="width: 40%;"
												class="progress-bar progress-bar-success" aria-valuenow="40"
												aria-valuemin="0" aria-valuemax="100"><span
													class="sr-only">40% Complete</span></span>
										</span>
									</a></li>
								</ul>
							</li>
						</ul></li>
					<!-- END TODO DROPDOWN -->
					<!-- BEGIN USER LOGIN DROPDOWN -->
					<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
					<li class="dropdown dropdown-user"><a href="#"
						class="dropdown-toggle" data-toggle="dropdown"
						data-hover="dropdown" data-close-others="true"> <img alt=""
							class="img-circle"
							src="static/assets/admin/layout/img/avatar3_small.jpg" /> <span
							class="username username-hide-on-mobile"> Nick </span> <i
							class="fa fa-angle-down"></i>
					</a>
						<ul class="dropdown-menu dropdown-menu-default">
							<li><a href="extra_profile.html"> <i class="icon-user"></i>
									个人信息
							</a></li>
							<li><a href="page_calendar.html"> <i
									class="icon-calendar"></i> 我的日程
							</a></li>
							<li><a href="inbox.html"> <i class="icon-envelope-open"></i>
									收件箱 <span class="badge badge-danger"> 3 </span>
							</a></li>
							<li><a href="page_todo.html"> <i class="icon-rocket"></i>
									我的任务 <span class="badge badge-success"> 7 </span>
							</a></li>
							<li class="divider"></li>
							<li><a href="extra_lock.html"> <i class="icon-lock"></i>
									锁屏
							</a></li>
							<li><a href="login.shtml"> <i class="icon-key"></i> 退出
							</a></li>
						</ul></li>
					<!-- END USER LOGIN DROPDOWN -->
					<!-- BEGIN QUICK SIDEBAR TOGGLER -->
					<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
					<li class="dropdown dropdown-quick-sidebar-toggler"><a
						href="javascript:;" class="dropdown-toggle"> <i
							class="icon-logout"></i>
					</a></li>
					<!-- END QUICK SIDEBAR TOGGLER -->
				</ul>
			</div>
			<!-- END TOP NAVIGATION MENU -->
		</div>
		<!-- END HEADER INNER -->
	</div>
	<!-- END HEADER -->
	<div class="clearfix"></div>
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
		<!-- BEGIN SIDEBAR -->
		<div class="page-sidebar-wrapper">
			<div class="page-sidebar navbar-collapse collapse in"
				aria-expanded="true" style="">
				<!-- BEGIN SIDEBAR MENU -->
				<!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->
				<!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->
				<!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->
				<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
				<!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->
				<!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->
				<ul class="page-sidebar-menu" data-keep-expanded="false"
					data-auto-scroll="true" data-slide-speed="200">
					<!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
					<li class="sidebar-toggler-wrapper">
						<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
						<div class="sidebar-toggler"></div> <!-- END SIDEBAR TOGGLER BUTTON -->
					</li>
                   
				</ul>
				<!-- END SIDEBAR MENU -->
			</div>
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN CONTENT -->
		<div class="page-content-wrapper">
			<div class="page-content">
				<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
				<div class="modal fade" id="portlet-config" tabindex="-1"
					role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true"></button>
								<h4 class="modal-title">Modal title</h4>
							</div>
							<div class="modal-body">Widget settings form goes here</div>
							<div class="modal-footer">
								<button type="button" class="btn blue">Save changes</button>
								<button type="button" class="btn default" data-dismiss="modal">Close</button>
							</div>
						</div>
						<!-- /.modal-content -->
					</div>
					<!-- /.modal-dialog -->
				</div>
				<!-- /.modal -->
				<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
				<!-- BEGIN STYLE CUSTOMIZER -->
				<div class="theme-panel hidden-xs hidden-sm">
					<div class="toggler"></div>
					<div class="toggler-close"></div>
					<div class="theme-options">
						<div class="theme-option theme-colors clearfix">
							<span> THEME COLOR </span>
							<ul>
								<li class="color-default current tooltips" data-style="default"
									data-container="body" data-original-title="Default"></li>
								<li class="color-darkblue tooltips" data-style="darkblue"
									data-container="body" data-original-title="Dark Blue"></li>
								<li class="color-blue tooltips" data-style="blue"
									data-container="body" data-original-title="Blue"></li>
								<li class="color-grey tooltips" data-style="grey"
									data-container="body" data-original-title="Grey"></li>
								<li class="color-light tooltips" data-style="light"
									data-container="body" data-original-title="Light"></li>
								<li class="color-light2 tooltips" data-style="light2"
									data-container="body" data-html="true"
									data-original-title="Light 2"></li>
							</ul>
						</div>
						<div class="theme-option">
							<span> Layout </span> <select
								class="layout-option form-control input-sm">
								<option value="fluid" selected="selected">Fluid</option>
								<option value="boxed">Boxed</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Header </span> <select
								class="page-header-option form-control input-sm">
								<option value="fixed" selected="selected">Fixed</option>
								<option value="default">Default</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Top Menu Dropdown</span> <select
								class="page-header-top-dropdown-style-option form-control input-sm">
								<option value="light" selected="selected">Light</option>
								<option value="dark">Dark</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Sidebar Mode</span> <select
								class="sidebar-option form-control input-sm">
								<option value="fixed">Fixed</option>
								<option value="default" selected="selected">Default</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Sidebar Menu </span> <select
								class="sidebar-menu-option form-control input-sm">
								<option value="accordion" selected="selected">Accordion</option>
								<option value="hover">Hover</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Sidebar Style </span> <select
								class="sidebar-style-option form-control input-sm">
								<option value="default" selected="selected">Default</option>
								<option value="light">Light</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Sidebar Position </span> <select
								class="sidebar-pos-option form-control input-sm">
								<option value="left" selected="selected">Left</option>
								<option value="right">Right</option>
							</select>
						</div>
						<div class="theme-option">
							<span> Footer </span> <select
								class="page-footer-option form-control input-sm">
								<option value="fixed">Fixed</option>
								<option value="default" selected="selected">Default</option>
							</select>
						</div>
					</div>
				</div>
				<!-- END STYLE CUSTOMIZER -->
				<!-- BEGIN PAGE HEADER-->
				<sitemesh:write property="body" />
				<!-- END PAGE CONTENT-->
			</div>
		</div>
		<!-- END CONTENT -->
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<div class="page-footer">
		<div class="page-footer-inner">2014 &copy; minyon by
			明阳科技</div>
		<div class="scroll-to-top">
			<i class="icon-arrow-up"></i>
		</div>
	</div>
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	<!--[if lt IE 9]>
<script src="static/assets/global/plugins/respond.min.js"></script>
<script src="static/assets/global/plugins/excanvas.min.js"></script> 
<![endif]-->
	<script src="static/assets/global/plugins/jquery-migrate.min.js"
		type="text/javascript"></script>
	<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
	<script
		src="static/assets/global/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js"
		type="text/javascript"></script>
	<script
		src="static/assets/global/plugins/bootstrap/js/bootstrap.min.js"
		type="text/javascript"></script>
	<script
		src="static/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"
		type="text/javascript"></script>
	<script
		src="static/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js"
		type="text/javascript"></script>
	<script src="static/assets/global/plugins/jquery.blockui.min.js"
		type="text/javascript"></script>
	<script src="static/assets/global/plugins/jquery.cokie.min.js"
		type="text/javascript"></script>
	<script
		src="static/assets/global/plugins/uniform/jquery.uniform.min.js"
		type="text/javascript"></script>
	<script
		src="static/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js"
		type="text/javascript"></script>
	<!-- END CORE PLUGINS -->

	<script src="static/assets/global/scripts/metronic.js"
		type="text/javascript"></script>
	<script src="static/assets/admin/layout/scripts/layout.js"
		type="text/javascript"></script>
	<script src="static/assets/admin/layout/scripts/quick-sidebar.js"
		type="text/javascript"></script>
	<script src="static/assets/admin/layout/scripts/demo.js"
		type="text/javascript"></script>
      <script src="static/js/common.js"
		type="text/javascript"></script>
<script src="static/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
	<script>
	var basePath="<%=basePath%>";
		jQuery(document).ready(function() {
			Metronic.init(); // init metronic core components
			Layout.init(); // init current layout
			Demo.init(); // init demo features:布局设置功能
			initMenu();//初始化菜单
		});
		
		function initMenu(){
			//clearAndLoadOne("dataTable", 9);
			var searchURL = basePath + "/ajaxGetUserMenuList.shtml";
			$.ajax({
				url : searchURL,
				type : "post",
				contentType : "application/json; charset=UTF-8",
				dataType : "json",
				success : function(jsonResult) {
					if (jsonResult.success) {
					    loadMenu(jsonResult.data);
					} else {
						//handleAjaxResponseError(jsonResult);
					}
				},
				// 请求失败
				error : function(xhr) {
					//loadFinished("dataTable");
					//handleAjaxRequestError(xhr);
				}

			});
		}
		function loadMenu(data){
	      var menu="";
	      for(var i=0;i<data.length;i++){
	    	  if(data[i].parentId=='0'&&data[i].isShow=='1'){
	    		  menu+=" <li class='start'><a href='javascript:;'>"
	    		  +"<i class="+data[i].icon+"></i> <span class='title'>"+data[i].name+"</span> <span class='selected'></span> <span class='arrow open'></span></a>";
	    	  }
	    	  menu+=" <ul class='sub-menu' >"; 
	    	  for(var j=0;j<data.length;j++){
	    		  if(data[j].isShow=='1'&&data[j].parentId==data[i].id){
	    			  menu+="<li ><a href="+data[j].href+"><i class="+data[j].icon+"></i>"+ data[j].name
						+"</a></li>";  
	    		  }
	    	  }
	    	  menu+=" </ul>"; 
	      }
	      $(".page-sidebar-menu").append(menu);
	    //选中左侧菜单
			var path=window.location.href;
			$(".sub-menu a").each(function(){
			     if(path.indexOf(this.href)!=-1){
			    	 Layout.setSidebarMenuActiveLink('set', this); 
			     }
			  });
		}
	</script>
	<!-- END JAVASCRIPTS -->
	<sitemesh:write property='subPageJs'/> 
</body>
<!-- END BODY -->
</html>